﻿@model GameSchool.Models.Level

<script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

<div class="well">
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Skrá borð</legend>
                
        <div class="editor-label">
            @Html.Label("Nafn borðs")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>

        <div class="editor-label">
            @Html.Label("Lýsing borðs")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Description)
            @Html.ValidationMessageFor(model => model.Description)
        </div>

		<!-- ATH þennan reit þarf að fjarlægja og setja lógík í staðinn sem detectar GameID sjálfkrafa!!! -->
		 <div class="editor-field">
			@Html.Hidden("GameID", ViewData["currGame"])
            @Html.ValidationMessageFor(model => model.GameID)
        </div>
		 <p>
            <div class="form-actions">
					<input type="submit" class="btn btn-primary" value="Vista">
				</div>
        </p>
    </fieldset>
}
</div>
